﻿#region << 版 本 注 释 >>
/*----------------------------------------------------------------
 * 版权所有 (c) 2022   保留所有权利。
 * CLR版本：4.0.30319.42000
 * 机器名称：DESKTOP-UL84BU5
 * 公司名称：
 * 命名空间：KingerRobot.WanliMDC.Spi
 * 唯一标识：8333a497-3ce4-4168-819b-bd442081b47a
 * 文件名：IProductService
 * 当前用户域：DESKTOP-UL84BU5
 * 
 * 创建者：zzl
 * 电子邮箱：1003590782@qq.com
 * 创建时间：2022/8/16 8:20:11
 * 版本：V1.0.0
 * 描述：
 *
 * ----------------------------------------------------------------
 * 修改人：
 * 时间：
 * 修改说明：
 *
 * 版本：V1.0.1
 *----------------------------------------------------------------*/
#endregion << 版 本 注 释 >>
using KingerRobot.MexicoSailunMES.Spi;
using KingerRobot.MexicoSailunMES.Spi.DTO;

namespace KingerRobot.MexicoSailunMDC.Spi;
/// <summary>
/// 产品服务
/// </summary>
public interface IProductService
{
    int GetMesNoSyncProduct(BcdInfoBean info);

    int GetMesNoSyncHoldReq(HoldReqInfoBean Info);

    TireInfo GetMesProductByProductCode(string productCode);
}
public class StockProductNumSettingMaxNum
{
    public int Stocknum { get; set; }
    public int SettingNum { get; set; }
}
/// <summary>
/// 产品对象
/// </summary>
public class ProductBean
{
    /// <summary>
    /// 胎胚条码
    /// </summary>
    public string TireBarcode { get; set; }
    /// <summary>
    /// 物料id
    /// </summary>
    public string MaterialId { get; set; }
    /// <summary>
    /// 物料code
    /// </summary>
    public string MaterialCode { get; set; }
    /// <summary>
    /// 生产设备
    /// </summary>
    public string ProductEquip { get; set; }
    /// <summary>
    /// 生产时间
    /// </summary>
    public DateTime? ProductTime { get; set; }

    /// <summary>
    /// 生产批次
    /// </summary>
    public string ProductBatch { get; set; }
    /// <summary>
    /// 胎胚锁定[0:解锁；1：锁定]
    /// </summary>
    public int? TireLock { get; set; }
    /// <summary>
    /// 质量[0：合格;1:不合格]
    /// </summary>
    public int? QuailtyStatus { get; set; }
}
/// <summary>
/// 产品质量信息
/// </summary>
public class ProductQualityBean
{
    public string BarCode { get; set; }
    public string Spec { get; set; }
    public string Itnbr { get; set; }
    public string Itdsc { get; set; }
    public DateTime? Wdate { get; set; }
    public DateTime? Wtim { get; set; }
    public string Wsht { get; set; }
    public string Wban { get; set; }
    public string UserId { get; set; }
    public string Nooutrsn { get; set; }
    public string Itmstatus { get; set; }
    public string JudguserId { get; set; }
    public DateTime? Judgdt { get; set; }
    public string RcvFlag { get; set; }
    public DateTime? RcvDt { get; set; }
    public string EntUserId { get; set; }
    public DateTime? EntDt { get; set; }
    public string UpdUserId { get; set; }
    public DateTime? UpdDt { get; set; }
}

/// <summary>
/// 产品冻结信息
/// </summary>
public class ProductFrozenBean
{
    /// <summary>
    /// 产品编号
    /// </summary>
    public string Barcode { get; set; }
    /// <summary>
    /// Spec码
    /// </summary>
    public string Spec { get; set; }
    /// <summary>
    /// 物料编号
    /// </summary>
    public string Itnbr { get; set; }
    /// <summary>
    /// 物料名
    /// </summary>
    public string Itdsc { get; set; }

    /// <summary>
    /// 生产日期（工厂日期）
    /// </summary>
    public DateTime? Wdate { get; set; }
    /// <summary>
    /// 生产时间
    /// </summary>
    public DateTime? Wtime { get; set; }
    /// <summary>
    /// 作业班次
    /// </summary>
    public string Wsht { get; set; }
    /// <summary>
    /// 生产班组
    /// </summary>
    public string Wban { get; set; }

    /// <summary>
    /// 生产作业者工号
    /// </summary>
    public string UserId { get; set; }

    /// <summary>
    /// 设备代码
    /// </summary>
    public string MchId { get; set; }

    /// <summary>
    /// 冻结原因
    /// </summary>
    public string Nooutrsn { get; set; }
    /// <summary>
    /// 冻结 Y 是 N 否
    /// </summary>
    public string Itmstatus { get; set; }
    /// <summary>
    /// 判定者工号
    /// </summary>
    public string Judguserid { get; set; }
    /// <summary>
    /// 判定日期
    /// </summary>
    public DateTime? Judgdt { get; set; }
    /// <summary>
    /// 其他系统收信 FLAG
    /// </summary>
    public string RcvFlag { get; set; }
    /// <summary>
    /// 其他系统收信时间
    /// </summary>
    public DateTime? RcvDt { get; set; }


    public string EntUserId { get; set; }
    public DateTime? EntDt { get; set; }
    public string UpdUserId { get; set; }
    public DateTime? UpdDt { get; set; }
}